module.exports={
    add(data){
        return request({
            url: '/scene',
            headers: {},
            method: 'post',
            data: data
        });
    },
    edit(data){
        return request({
            url: '/scene',
            headers: {},
            method: 'put',
            data: data
        });
    },
    changeStatus(id,status){
        return request({
            url: `/scene/changeStatus/${id}/${status}`,
            headers: {},
            method: 'put',
        });
    },
    remove(data){
        return request({
            url: '/scene/'+data,
            headers: {},
            method: 'delete'
        });
    },
    list(data){
        return request({
            url: '/scene/list',
            headers: {},
            method: 'get',
            params: data
        });
    },
    listByProfileCode(code){
        return request({
            url: `/scene/profile/${code}/list`,
            headers: {},
            method: 'get'
        });
    },
    listByTerminalCode(code){
        return request({
            url: `/scene/terminal/${code}/list`,
            headers: {},
            method: 'get'
        });
    },

    listForExec(profileCode,terminalCode){
        return request({
            url: `/scene/${profileCode}/${terminalCode}/list`,
            headers: {},
            method: 'get'
        });
    }
}
